#ifndef __SECURITYSERVICE_H__
#define __SECURITYSERVICE_H__

#include "stdafx.h"
#include "Security.h"

class SecurityService{
public: 
    SecurityService();
    ArrayList<Security*> m_securities;
    HashMap<String, Security*> m_securitiesMap;
    bool m_loaded;
    /*
     * 获取是否已加载
     */
    bool isLoaded();
    /*
     * 根据代码获取证券
     *@param code 证券代码
     *@param security 证券信息
     */
    bool getSecurityByCode(String code, Security *security);
    /*
     * 加载证券
     */
    void load(ArrayList<Security*> securitiesCache);
};

#endif
